package com.artisan.common.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by  on 2016/4/22.
 * app 接口返回通用数据字段实体对象
 */
public class ApiRes implements Serializable {

    public static final String ERROR_NULL_CODE = "10007";//参数为空
    public static final String ERROR_FORMAT_CODE = "10008";
    public static final String ERROR_ISEXIST_CODE = "10009";
    public static final String ERROR_CODE = "1000";
    public static final String PAYEND_ERROR_CODE = "1004";
    public static final String SUCCESS_CODE = "0000";//成功
    public static final String NO_DATA_CODE = "1001";
    public static final String USER_OUTTIME_CODE = "1002" ;
    public static final String WECHAT_RECORD_CODE = "1020";
    public static final String ILLEGAL_CUS_CODE = "1003" ;
    public static final String RESERVE_MORE_CODE = "1012" ;
    public static final String NO_PAY_TRAN = "1013";



    //返回码
    private String code;
    //描述信息
    private String desc ;

    //时间
    private Date procsTime;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
        if(SUCCESS_CODE.equals(code)){
            this.desc="操作成功";
        }
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Date getProcsTime() {
        return procsTime;
    }

    public void setProcsTime(Date procsTime) {
        this.procsTime = procsTime;
    }
}
